import request from '@/utils/request.js'

// 热点词
export const getHotSearchAPI = function () {
  return request({
    url: '/search/hot'
  })
}

// 搜索列表
/**
 *
 * @param {Object} params {keywords, limit, offset}
 * @returns promise
 */
export const getCloudSearchAPI = function (params) {
  return request({
    url: '/cloudsearch',
    params
  })
}
